﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Truck:Vehicle
    {
        public float Load { get; set; }
        public Truck(float v,float b):base(v)
        {
             Load=b;
        }
        public override void Run(float d)
        {
            Console.WriteLine("行驶{0}公里用时{1}",d, (1+Load)*d/V);
        }
    }
}
